home *** CD-ROM | disk | FTP | other *** search
/ Champak 99 / (Vol 99) Jan 19 2010.iso / Games / benjamin_beaver.swf / scripts / DefineButton2_151 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2010-01-19  |  1.1 KB  |  54 lines

  1. on(press){
  2.    var ┬º\x01┬º = 72;
  3.    while(true)
  4.    {
  5.       if(eval("\x01") == 72)
  6.       {
  7.          set("\x01",eval("\x01") + 534);
  8.          ┬º┬ºpush(true);
  9.       }
  10.       else if(eval("\x01") == 606)
  11.       {
  12.          set("\x01",eval("\x01") + 271);
  13.          if(┬º┬ºpop())
  14.          {
  15.             set("\x01",eval("\x01") - 19);
  16.          }
  17.       }
  18.       else if(eval("\x01") == 240)
  19.       {
  20.          set("\x01",eval("\x01") + 309);
  21.       }
  22.       else if(eval("\x01") == 549)
  23.       {
  24.          set("\x01",eval("\x01") - 168);
  25.       }
  26.       else
  27.       {
  28.          if(eval("\x01") != 858)
  29.          {
  30.             break;
  31.          }
  32.          set("\x01",eval("\x01") - 309);
  33.       }
  34.    }
  35.    if(eval("\x01") == 877)
  36.    {
  37.       set("\x01",eval("\x01") - 19);
  38.       stopAllSounds();
  39.    }
  40.    else if(eval("\x01") == 381)
  41.    {
  42.       set("\x01",eval("\x01") + 324);
  43.       stopAllSounds();
  44.       _root.SFX.gotoAndPlay("Bounce");
  45.       _root.funcHITBOX("misc","PlayAgain_goToMain");
  46.       gotoAndStop("Title");
  47.       play();
  48.    }
  49.    else if(eval("\x01") == 705)
  50.    {
  51.       set("\x01",eval("\x01") - 705);
  52.    }
  53. }
  54.